class Solution:
    # @param n, an integer
    # @return an integer
    def reverseBits(self, n):
        return int(bin(n)[:1:-1].ljust(32, "0"), 2)


a = Solution()
print(a.reverseBits(43261596))